package com.baizhi.service;

import com.baizhi.entity.Brand;
import com.baizhi.entity.Phone;
import com.baizhi.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PhoneService {
    //查询所有
    public List<Phone> selectPhone(Integer page,Integer rows);

    //查询总数
    public Integer selectPhoneSum();

    //添加手机
    public void insertPhone(Phone phone);

    //删除手机
    public void deletePhone(Integer id);

    //查询一条数据手机
    public Phone selectPhoneOne(Integer id);

    //修改数据手机
    public void updatePhone(Phone phone);



    ////////////////////////////////////////

    public List<Brand> selectBrand();

    public void insertBrand(Brand brand);

    public void deleteSomePhone(Integer id);

    public void deleteBrand(Integer id);


}
